package aleksandar.djuric.gui;

import javax.swing.JPanel;

import java.awt.Color;
import java.awt.Frame;
import java.awt.BorderLayout;

import javax.swing.BorderFactory;
import javax.swing.JWindow;
import javax.swing.JLabel;

public class ToolTip extends JWindow {

	private static final long serialVersionUID = 1L;
	private JPanel jContentPane = null;
	private JLabel jLabel = null;

	/**
	 * @param owner
	 */
	public ToolTip(Frame owner) {
		super(owner);
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
//		this.setSize(300, 200);
		this.setContentPane(getJContentPane());
		this.pack();
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private JPanel getJContentPane() {
		if (jContentPane == null) {
			jLabel = new JLabel();
			jLabel.setText("Click to perform training");
			jLabel.setOpaque(true);
			jLabel.setBackground(Color.WHITE);
			jLabel.setBorder(BorderFactory.createLineBorder(Color.BLACK));
			jContentPane = new JPanel();
			jContentPane.setLayout(new BorderLayout());
			jContentPane.add(jLabel, BorderLayout.CENTER);
		}
		return jContentPane;
	}

}
